Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws-ecs): broken splunk-logging tag-option in fargate platform version 1.4 #13882

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

bweigel
Copy link
Contributor

@bweigel bweigel commented Mar 30, 2021

Set splunk-tag when tag is set. This will keep the API constant, however it will add an additional splunk-tag in the key-value Options property in AWS::ECS::TaskDefinitions - LogConfiguration.

This is a very pragmatic approach. Feel free to suggest something else.

closes #13881


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Mar 30, 2021

@SoManyHs SoManyHs added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Mar 30, 2021
Copy link
Contributor

@SoManyHs SoManyHs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

packages/@aws-cdk/aws-ecs/test/splunk-log-driver.test.ts Outdated Show resolved Hide resolved
SoManyHs
SoManyHs previously approved these changes Mar 30, 2021
@mergify mergify bot dismissed SoManyHs’s stale review March 30, 2021 17:45

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 9529c28
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 30, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e9d9299 into aws:master Mar 30, 2021
@bweigel bweigel deleted the #13881-fix-splunk-logdriver branch March 31, 2021 06:23
@bweigel bweigel restored the #13881-fix-splunk-logdriver branch March 31, 2021 06:59
bweigel added a commit to bweigel/aws-cdk that referenced this pull request Mar 31, 2021
…latform version 1.4 (aws#13882)"

This reverts commit e9d9299.

Unfortunately the above commit leads to broken deployments that are
caused by behaviors upstream (i.e. in the ECS backend):

> Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy
: null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest)

This means however, that the buggy behavior mentioned in aws#13881
persists.
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Mar 31, 2021
…version 1.4 (aws#13882)

Set `splunk-tag` when `tag` is set. This will keep the API constant, however it will add an additional `splunk-tag` in the key-value `Options` property in `AWS::ECS::TaskDefinition`s - `LogConfiguration`.

This is a very pragmatic approach. Feel free to suggest something else.

closes aws#13881 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Apr 2, 2021
…platform version 1.4 (#13882)" (#13892)

This reverts commit e9d9299.

Unfortunately the above commit leads to broken deployments that are caused by behaviors upstream (i.e. in the ECS backend):

> Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy
: null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest)

This means however, that the buggy behavior mentioned in #13881 persists.
I am in communication with AWS support on this issue and will keep you posted.

Sorry to have caused that mess. I should have marked the PR #13882 as draft before everything was clear.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…version 1.4 (aws#13882)

Set `splunk-tag` when `tag` is set. This will keep the API constant, however it will add an additional `splunk-tag` in the key-value `Options` property in `AWS::ECS::TaskDefinition`s - `LogConfiguration`.

This is a very pragmatic approach. Feel free to suggest something else.

closes aws#13881 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…platform version 1.4 (aws#13882)" (aws#13892)

This reverts commit e9d9299.

Unfortunately the above commit leads to broken deployments that are caused by behaviors upstream (i.e. in the ECS backend):

> Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy
: null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest)

This means however, that the buggy behavior mentioned in aws#13881 persists.
I am in communication with AWS support on this issue and will keep you posted.

Sorry to have caused that mess. I should have marked the PR aws#13882 as draft before everything was clear.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(@aws-cdk/aws-ecs): SplunkLogDriver in Fargate PV 1.4 does not respect 'tag', but 'splunk-tag' instead
3 participants